package com.choosefine.it.manager.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.manager.dao.ManagerProjectExperienceMapper;
import com.choosefine.it.manager.model.ManagerEvaluationInfo;
import com.choosefine.it.manager.model.ManagerProjectExperience;
import com.choosefine.it.manager.service.ManagerProjectExperienceService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @author 潘钱钦 上午11:46:22
 *
 */
@Service("managerProjectExperienceService")
public class ManagerProjectExperienceServiceImpl implements ManagerProjectExperienceService {
	@Autowired
	private ManagerProjectExperienceMapper managerProjectExperienceMapper;

	@Override
	public Page<ManagerProjectExperience> selectManagerProjectExperienceByUserCode(String userCode, PageDTO pageDto) {
		PageHelper.startPage(pageDto.getPageNum(), pageDto.getPageSize());
		Page<ManagerProjectExperience> page = managerProjectExperienceMapper
				.selectManagerProjectExperienceByUserCode(userCode);
		return page;
	}

	@Override
	public int ManagerProjectCount(String userCode) {
		// TODO Auto-generated method stub
		return managerProjectExperienceMapper.ManagerProjectCount(userCode);
	}

}
